package com.qys.livesMall.shop.modal.dto;

import com.qys.livesMall.shop.modal.entity.ShopOrderInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @packageName:
 * @className:ShopCartDto
 * @Description:
 * @author:guomx
 * @date:2023/6/2014:08
 */
@Data
@Valid
public class ShopCartDto extends ShopOrderInfo {

    @NotNull(message = "skuId不能为空")
    Long skuId;
    @NotNull(message = "数量不能为空")
    Integer num;
    @Schema(description = "主播id")
    private Long anchorId;
    @Schema(description = "任务id")
    private Long taskId;
}
